package com.itheima.service.db.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.domain.CmsPrefrenceArea;
import com.itheima.mapper.CmsPrefrenceAreaMapper;
import com.itheima.service.db.CmsPrefrenceAreaService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class CmsPrefrenceAreaServiceImpl implements CmsPrefrenceAreaService {
    @Autowired
    CmsPrefrenceAreaMapper cmsPrefrenceAreaMapper;


    //获取所有商品优选
    @Override
    public List findAllProductNice() {
        LambdaQueryWrapper<CmsPrefrenceArea>lqw=new LambdaQueryWrapper<>();
        lqw.orderByDesc(CmsPrefrenceArea::getId);
     return     cmsPrefrenceAreaMapper.selectList(lqw);

    }
}
